package com.ruoyi.fetv.controller.vo.comment;

import com.ruoyi.common.core.domain.ServiceRequireFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;

import javax.validation.constraints.NotNull;

/**
 * @ClassName AddReq
 * @Description
 * @Author 15014
 * @Time 2023/3/7 13:11
 * @Version 1.0
 */
@ApiModel(value = "FetvCommentAddReq", description = "资讯评论对象fetv_commentAddReq")
@Data
@Getter
public class AddReq extends ServiceRequireFiled {
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", hidden = true)
    private Long id;
    /**
     * 资讯id
     */
    @ApiModelProperty(value = "资讯id", required = true)
    @NotNull(message = "资讯不能为空")
    private Long informationId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    @NotNull(message = "用户名不能为空")
    private String userName;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容", required = true)
    @NotNull(message = "评论内容不能为空")
    private String content;

    /**
     * 评论的父id
     */
    @ApiModelProperty(value = "评论的父id")
    private Long parentId;
}